import requset from "../../requset";
// 手机登录
export function login(data) {
  return requset({
    url: "/login/cellphone",
    method: "get",
    params: data,
  });
}
// 退出登录
export function quit() {
  return requset({
    url: "/logout",
    method: "get",
  });
}
// 登录状态
export function status(params = {}) {
  return requset({
    url: "/login/status",
    method: "get",
    params: params,
  });
}
// 二维码 key 生成接口
export function key(params = {}) {
  return requset({
    url: "/login/qr/key",
    method: "get",
    params: params,
  });
}

// 二维码生成接口
export function qr(params) {
  return requset({
    url: "/login/qr/create",
    method: "get",
    params: params,
  });
}
// 二维码检测扫码状态接口

export function lx(params) {
  return requset({
    url: "/login/qr/check",
    method: "get",
    params: params,
  });
}

// 二维码检测扫码状态接口 获取用户信息
export function hq(params) {
  return requset({
    url: "/login/status",
    method: "post",
    data: params,
  });
}

// 发送验证码
export function hsendverification(params) {
  return requset({
    url: "/captcha/sent",
    method: "get",
    params: params,
  });
}
// 验证验证码
export function Verificationcode(params) {
  return requset({
    url: "/captcha/verify",
    method: "get",
    params: params,
  });
}
